new Vue ({
	el: "#app", 
	data: {
		imgUrl: "https://app.meijiangzi.com/static/",
		hospitalStr: '', 
		detail: {},
		reference_project: []
    },
	methods: {
	    getData: function() {
			var s = this;
			wx.showLoading({
				title: "加载中",
				mask: !0
			});
			this.detail = JSON.parse(this.hospitalStr);
			console.log(this.detail);
			wx.hideLoading();
		},
		getRecommends: function(){
			const that = this;
			this.$http.post(baseUrl+"/api/hospital/queryDetail/" + that.detail.hospitalId, {
			}).then(function(t) {
				wx.hideLoading();
				var s = t.data;
				if (!s.success) return wx.hideLoading(), wx.showToast({
					title: s.description,
					icon: "none",
					duration: 2e3,
					mask: !0
				}), !1;
				that.reference_project = s.data.recommand;
			}).catch(function(t) {
				wx.hideLoading(), wx.showToast({
					title: "网络错误，请检查网络",
					icon: "none",
					duration: 2e3,
					mask: !0
				});
			});
		},
		toProjectDetail: function(item){
			Jump.to(page.index.detail, "id=" + item.guid);
		}
	},
	created: function() {
		this.hospitalStr = URLParam.get('hospital');
		this.getData(), this.getRecommends();
	}
});